﻿using NCS.IConnect.Core.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NCS.IConnect.Core.WebApi.Description
{
    /// <summary>
    /// Condition
    /// </summary>
    public class ConditionInfo
    {
        /// <summary>
        /// Gets the condition code.
        /// </summary>
        /// <value>The condition code.</value>
        public string Code { get; private set; }
        /// <summary>
        /// Gets the description of condition.
        /// </summary>
        /// <value>The description of condition.</value>
        public string Description { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ConditionInfo"/> class.
        /// </summary>
        /// <param name="code">The code.</param>
        /// <param name="description">The description.</param>
        public ConditionInfo(string code, string description)
        {
            Guard.ArgumentNotNullOrEmpty(description, "description");

            this.Code = code;
            this.Description = description;
        }
    }
}
